﻿using FigureDraw.Diagram;
using FigureDraw.Graphic;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace FigureDraw.Shapes
{
    public class MyLine : MyShape
    {
        double x2;
        double y2;

        public MyLine(double x1, double y1, double x2, double y2) : base(x1, y1) {
            this.x2 = x2;
            this.y2 = y2;
        }

        public override void Draw(CommonGraphic graphic)
        {
            graphic.DrawLine(x, y, x2, y2);
        }

        public override MyShape Clone(BlockDiagram diagram)
        {
            throw new NotImplementedException();
        }
    }
}
